package hu.tortavar.client.ui;

import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Element;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.Widget;

public class NewsRenderHTML extends Composite {

	private static NewsRenderHTMLUiBinder uiBinder = GWT
			.create(NewsRenderHTMLUiBinder.class);

	interface NewsRenderHTMLUiBinder extends UiBinder<Widget, NewsRenderHTML> {
	}

	public NewsRenderHTML() {
		initWidget(uiBinder.createAndBindUi(this));
	}

	@UiField Element cim;
	@UiField Element leiras;

	public NewsRenderHTML(String cim, String leiras) {
		initWidget(uiBinder.createAndBindUi(this));
		this.cim.setInnerText(cim);
		this.leiras.setInnerHTML(leiras);
	}
	public void setNewsRenderHTML(String cim, String leiras) {
		this.cim.setInnerText(cim);
		this.leiras.setInnerHTML(leiras);
	}
}
